package cn.edu.fzu.delivery.common;

public class RedisKey {

    /**
     * 存放邮箱验证码
     **/
    public static String emailCodeKey(String email) {
        StringBuilder builder = new StringBuilder(email.length() + 2);
        builder.append("c:").append(email);
        return builder.toString();
    }


    /**
     * 存放邮箱验证码获取次数
     **/
    public static String emailCodeTimeKey(String email) {
        StringBuilder builder = new StringBuilder(email.length() + 3);
        builder.append("ct:").append(email);
        return builder.toString();
    }


    /**
     * 存放图片验证码
     **/
    public static String vCodeKey(String email) {
        StringBuilder builder = new StringBuilder(email.length() + 2);
        builder.append("v:").append(email);
        return builder.toString();
    }


    /**
     * 存放图片验证码获取次数
     **/
    public static String vCodeTimeKey(String email) {
        StringBuilder builder = new StringBuilder(email.length() + 3);
        builder.append("vt:").append(email);
        return builder.toString();
    }


    /**
     * 存放快递催促时间
     * 
     * @param courierId
     * @return
     */
    public static String urgeCourierKey(String courierId) {
        StringBuilder builder = new StringBuilder(courierId.length() + 3);
        builder.append("uct:").append(courierId);
        return builder.toString();
    }
}
